﻿using System;

namespace DBModel
{
    /// <summary>
    /// 公共Entity，所有的都继承自该Entity
    /// </summary>
    public class Entity
    {
        /// <summary>
        /// ID
        /// </summary>
        public virtual string Id { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        public virtual int IsValid { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime CreateDate { get; set; }

        public Entity()
        {
            this.Id = EMCommon.Common.NewID();
            this.CreateDate = DateTime.Now;
            this.IsValid = 1;
        }
    }
}
